package pkg.chemdrm;

import java.util.LinkedList;

public class EventHandler {
	LinkedList<EventListener> mListeners;
	LinkedList<EventSource> mSources;
	
	
	
	public EventHandler()
	{
		
		
	}
	
	public void update(float dt)
	{
		// go through all of the sources, and request events. 
		// execute the events, and pass the listeners. Then remove them from our lists.
		// hopefully the events finish the job.
		
	}
	
	
	
	public void registerListener(EventListener pListener)
	{
		mListeners.addFirst(pListener); // I think this is the O(1) add?
	}
	
	public void registerSource(EventSource pSource)
	{
		mSources.addFirst(pSource); // O(1) add?
	}
}
